/*
 *NOTE:Auto generated dao
*/
package com.surfilter.modules.impPos.dao;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;
import com.surfilter.modules.impPos.model.HtImportPosModel;
import com.surfilter.platform.base.dao.DaoBase;
import com.surfilter.platform.base.model.PageInfo;

@Repository(value="Service_impPosHtImportPosDao")
public class HtImportPosDao extends DaoBase<HtImportPosModel>{

	@Resource(name = "surfilterSqlMapClient")
	private SqlMapClient sqlMapClient;

	public void initSqlMapClient() {
		this.setSqlMapClient(sqlMapClient);
	}
	
	public java.lang.Integer addHtImportPos(HtImportPosModel htImportPosModel) {
		java.lang.Integer key = (java.lang.Integer) this.addObject("addHtImportPos", htImportPosModel);
		return key;
	}
	
	public void chgHtImportPos(HtImportPosModel htImportPosModel) {
		this.updateObject("chgHtImportPos", htImportPosModel);
	}
	
	public void delHtImportPos(HtImportPosModel htImportPosModel) {
		this.updateObject("delHtImportPos", htImportPosModel);
	}

	public List<HtImportPosModel> getHtImportPoss(HtImportPosModel htImportPosModel, PageInfo pageInfo) {
		return this.getListByObjectForPage("getHtImportPoss", htImportPosModel, pageInfo);
	}
	
	public void delHtImportPoss(List<java.lang.Integer> ids){
		this.deleteObject("delHtImportPoss", ids);
	}
	
	public int getHtImportPossCount(HtImportPosModel htImportPosModel) {
		return (Integer) this.getObjectByObject("getHtImportPossCount", htImportPosModel);
	}
}
